import React, { Component } from 'react'
import LoginService from 'services/login'
import {trimSpace} from 'utils/tools'

import './index.scss'

const loginService = new LoginService();
export default class LoginForm extends Component {
    constructor(props){
        super(props);
        this.state={
            username:'',
            password:''
        }
    }
    render() {
        return (
            <div className="login-form-wrapper">
                <div className="input-box">
                    <i className="iconfont icon-user">&#xe623;</i>
                    <input type="text" className="login-input" placeholder="用户名"></input>
                </div>
                <div className="input-box">
                    <i className="iconfont icon-lock">&#xe7b8;</i>
                    <input type="password" className="login-input" placeholder="密码"></input>
                </div>
                <div className="input-box">
                    <button className="btn btn-primary">登录后台</button>
                </div>
            </div>
        )
    }
}
